﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Research.Kinect.Nui;

namespace Kinect
{
    struct Position
    {
        double x;
        double y;
        double z;
        public Position(Joint e)
        {
            x = e.Position.X;
            y = e.Position.Y;
            z = e.Position.Z;
        }
    }
    public class GFrame
    {
        Position[] GJoint = new Position[8];

        GFrame(SkeletonData e)
        {
            GJoint[0] = new Position(e.Joints[JointID.HandLeft]);
            GJoint[1] = new Position(e.Joints[JointID.WristLeft]);
            GJoint[2] = new Position(e.Joints[JointID.ElbowLeft]);
            GJoint[3] = new Position(e.Joints[JointID.ShoulderLeft]);
            GJoint[4] = new Position(e.Joints[JointID.HandRight]);
            GJoint[5]= new Position(e.Joints[JointID.WristRight]);
            GJoint[6]= new Position(e.Joints[JointID.ElbowRight]);
            GJoint[7]= new Position(e.Joints[JointID.ShoulderRight]);
        }
    }
    public partial class KinectControl
    {
        public bool flag = false;
        public bool IsTGesture(bool begin)
        {
            //if(this.outGR!=null)
                   return false;
        }

    }
}
